<include file="inc:header" />
<div class="page" id='{$data.act}'>	
<?php
	$back_url = U("uccenter/index");
	$back_page = "#Uccenter";
	$back_epage = $_REQUEST['epage']=="" ? "#uc_center" : "#".$_REQUEST['epage'];
?>
	<include file="inc:title" />
<div class="content infinite-scroll "  data-distance="{$data.rs_count}" now_page="1">
	<!-- 这里是页面内容区 -->
<!--我的投资-->
<div class="{$data.act}-box"  all_page="{$data.page.page_total}" ajaxurl="{:U('ucinvest#index/index',array('status'=>$data.status))}">
	<div class="blank15"></div>
	<div class="choose">
		<table>
			<tr>
				<th <if condition="$data.status eq 0">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucinvest/index' , array( 'status'=> 0) )}','#Ucinvest','.{$data.act}-box')">全部</a></th>
				<th <if condition="$data.status eq 1">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucinvest/index' , array( 'status'=> 1) )}','#Ucinvest','.{$data.act}-box')">进行中</a></th>
				<th <if condition="$data.status eq 2">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucinvest/index' , array( 'status'=> 2) )}','#Ucinvest','.{$data.act}-box')">还款中</a></th>
				<th <if condition="$data.status eq 3">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucinvest/index' , array( 'status'=> 3) )}','#Ucinvest','.{$data.act}-box')">已还清</a></th>
				<th <if condition="$data.status eq 4">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucinvest/index' , array( 'status'=> 4) )}','#Ucinvest','.{$data.act}-box')">满标</a></th>
				<th <if condition="$data.status eq 5">class="y"</if>><a href="#" onclick="reloadpage('{:U('ucinvest/index' , array( 'status'=> 5) )}','#Ucinvest','.{$data.act}-box')">流标</a></th>
			</tr>
		</table>
	</div>
	<div class="blank15"></div>
	<ul class="recommended_nav_2 invest">


		<foreach name="data.item" item="deal">
			<li class="clearfix" >
				
					<div class="novice f_l">
						<if condition="$deal.is_advance eq 1">
						<img src="{$TMPL}/images/novice_0.png" width="100%" height="100%"/>
						<elseif condition="$deal.is_new eq 1">
						<img src="{$TMPL}/images/novice.png" width="100%" height="100%"/>
						</if>
					</div>
					<div class="title_nav bb1">
						<if condition="$deal.is_wait eq 1"><span class="state  c666666">
			            	<else/>
							<if condition="$deal.deal_status eq 0"><span class="state  c666666"></if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time gt 0"><span class="state  c56b1ea"></if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time lt 0"><span class="state  c666666"></if>
							<if condition="$deal.deal_status eq 2"><span class="state  ea544a"></if>
							<if condition="$deal.deal_status eq 3"><span class="state  c666666"></if>
							<if condition="$deal.deal_status eq 4"><span class="state  c66d191"></if>
							<if condition="$deal.deal_status eq 5"><span class="state  c666666"></if>
						</if>

							<if condition="$deal.is_wait eq 1">未开始
			            	<else/>
							<if condition="$deal.deal_status eq 0">等待材料</if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time gt 0">进行中</if>
							<if condition="$deal.deal_status eq 1 and $deal.remain_time lt 0">已过期</if>
							<if condition="$deal.deal_status eq 2">已满标</if>
							<if condition="$deal.deal_status eq 3">已流标</if>
							<if condition="$deal.deal_status eq 4">还款中</if>
							<if condition="$deal.deal_status eq 5">已还清</if>
							</if>
							</span>
						<span class="name">{$deal.name}</span>
						<!--
						<span class="r_state">{function name="loantypename" v="$deal.loantype" type=1}</span>
					    -->
					</div>
					<div class=" con_height bb1">
						<div class="  w_b  pt tc">
							<div class=" tl lv"><i class="big">{$data.rate|number_format=2}</i><i class="unit">%</i></div>
							<div class=" tl je"><i class="small">{$deal.u_load_money|replacemoney}</i><i class="unit">万</i></div>
							<div class=" tl sj"><i class="small">{$deal.repay_time}</i><i class="unit"><if condition="$deal.repay_time_type eq 0">天<else/>个月</if></i></div>
						<div class="w_b_f_1"></div>
						<div  class="progress-radial_parent ">
							<div class="progress-radial  progress-<if condition="$deal.deal_status gt 4">100<else/>{$deal.progress_point|round=0}</if>
							<if  condition="$deal.is_wait eq 1"> c999999
							<else/>
							<if  condition="$deal.deal_status eq 0">  c999999 </if>
							<if  condition="$deal.deal_status eq 1 and $deal.remain_time gt 0">  c56b1ea </if>
							<if  condition="$deal.deal_status eq 1 and $deal.remain_time lt 0">  c999999 </if>
							<if  condition="$deal.deal_status eq 2">  ea544a </if>
							<if  condition="$deal.deal_status eq 3">  c999999  </if>
							<if  condition="$deal.deal_status eq 4">  c66d191  </if>
							<if  condition="$deal.deal_status eq 5">  c999999  </if>
							</if>
							 "><b></b></div>
						</div>
					</div>
						</div>
						<div class="title_nav ">
								<span class="name show_time_name">发布日期</span>
								<span class="name show_time">{$deal.start_time|to_date="Y-m-d"}   </span>
								<if condition="$deal.has_transfer gt 0 and $deal.t_user_id neq $data.user_id">
								<span class="r_state">已转让</span>
								<else/>

									<a href="#" onclick="RouterURL('{:U('dealmobile/index' , array( 'id'=> $deal.id) )}','#Dealmobile',2);" class="r_state">标的详情</a>
								<if condition="$deal.deal_status gt 4">
									<a href="#" onclick="RouterURL('{:U('ucinvestrefdetail/index' , array( 'id'=> $deal.id , 'load_id'=> $deal.load_id) )}','#Ucinvestrefdetail',2);" class="r_state ea544a">回款详情</a>
								</if>
								</if>
						</div>
			</li>
     	</foreach>

	</ul>
	<div class="blank15"></div>
</div>
<!-- 加载提示符 -->
<div class="infinite-scroll-preloader">
  <div class="preloader">
  </div>
</div>
<include file="inc:footer" />







